<?php
class MissingControllerException extends Exception
{
    public function __construct($controllerName, $code = 0)
    {
        parent::__construct($controllerName.' is not found.', intval($code));
    }
}

class MissingActionException extends Exception
{
    public function __construct($actionName, $code = 0)
    {
        parent::__construct($actionName.' is not found.', intval($code));
    }
}

class UrlParseException extends Exception
{
    public function __construct($message, $code = 0)
    {
        parent::__construct('URLのパースに失敗しました。', intval($code));
    }
}

class ObjectOfControllerNotFoundException extends Exception
{
    public function __construct($message, $code = 0)
    {
        parent::__construct('コントローラのオブジェクトがみつかりません。', intval($code));
    }
}
